//
//  SweetheartView.h
//  Molian
//
//  Created by xiaocankeji on 15/8/27.
//  Copyright (c) 2015年 xiaocan. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MLSweetheart.h"
#import <FSMediaPicker.h>//照片选择
#import "MLUser.h"
@protocol SweetheartViewDelegate <NSObject>

@optional
- (void)pushUserDataViewControllerUser:(MLUser *)user;
- (void)pushChatViewControllerUser:(MLUser *)user isPay:(BOOL)isPay;
- (void)changeTableViewHeightBOOL:(BOOL)is;
@end
//恋人页面,无论是否有恋人,都直接创建3个
@interface SweetheartView : UIView<FSMediaPickerDelegate>

@property (nonatomic, assign)id<SweetheartViewDelegate>delegate;

@property (nonatomic, strong)MLUser *sweetheartUser;
@property BOOL userEnabled;//当前页面是否可以交互

@property (nonatomic, strong)MLSweetheart *sweetheart;//恋人关系
@property (nonatomic, strong)UIImageView *backgroundImageView;//背景图片
@property (nonatomic, strong)UIButton *myHeadBt;//我的头像
@property (nonatomic, strong)UIButton *taHeadBt;//他的头像
@property (nonatomic, strong)UILabel *togetherLabel;//在一起的时间描述
@property (nonatomic, strong)UIButton *messageBt;//消息的描述
@property (nonatomic, strong)UIImageView *messageImageView;//消息的图片
@property (nonatomic, strong)UILabel *unreadMessagesLabel;//未读消息的个数
@property (nonatomic, strong)UIButton *telephoneBt;//电话按钮
@property (nonatomic, strong)UIButton *timeBt;//时间按钮
@property (nonatomic, strong)UIButton *pokeBt;//戳一下
@property (nonatomic, strong)UIButton *kissBt;//么么哒



@property (nonatomic, strong)NSTimer *timeBtTimer;//定时器,剩余时间
@property (nonatomic, strong)UIView *timeView;
@property (nonatomic, strong)UILabel *surplusLabel;//剩余时间
@property (nonatomic, strong)UILabel *countDownLabel;//倒计时
@property (nonatomic, strong)UIButton *relieveBt;//继续领走
@property (nonatomic, strong)UIView *chiefView;//功能模块
@property (nonatomic)BOOL chiefViewTop;//功能的位置是否在上方
@property (nonatomic, strong)UIView *redHotView;//消息红点
@property (nonatomic, strong)UIButton *nameBt;


@property NSInteger textSize ;
//改变主要地方的内容位置
- (void)changeChiefViewFrame;
- (void)messageNumberChange;
//对内容进行赋值
- (void)assignment;
//分手 是否是普通的分手(只要外部调用的基本都是普通的分手,内部定时器调用(暂时内部不需要调用)的时候才是付费的时间到了自动分手)
- (void)separateIsCommon:(BOOL)common separateStr:(NSString *)str;
- (void)login;

- (void)logOut;
//改变背景图片
- (void)changeBackgroundUrl:(NSString *)url;
//恋人资料改变,需要重新赋值
- (void)changeSweetheartData;

@end
